package com.sc.web.gwt.client.service;

import com.google.gwt.core.client.GWT;
import com.google.gwt.user.client.rpc.RemoteService;
import com.google.gwt.user.client.rpc.RemoteServiceRelativePath;

@RemoteServiceRelativePath("RegisterService")
public interface RegisterService extends RemoteService {
//    boolean register(UserAccount newUserAccount);

    /**
     * Utility/Convenience class.
     * Use RegisterService.App.getInstance() to access static instance of RegisterServiceAsync
     */
    public static class App {
        private static final RegisterServiceAsync ourInstance = (RegisterServiceAsync) GWT.create(RegisterService.class);

        public static RegisterServiceAsync getInstance() {
            return ourInstance;
        }
    }
}
